{* $Id: page.html 22502 2013-04-08 07:48:01Z qianym $ *}
{if isset($pager)}
<div class="pages {$float}">
  {if $pager->getPage() > 1}
    <a href="/{$pager->link($pager->begin())}" data-page-no="{$pager->begin()}">首页</a>
    <a href="/{$pager->link($pager->prev())}" data-page-no="{$pager->prev()}">上一页</a>
  {/if}
  {foreach from=$pager->getPagesArray(9) item=v}
    {if $pager->getPage() == $v}
    <a href="javascript:void(0);" class="curr" data-page-no="{$v}">{$v}</a>
    {else}
    <a href="/{$pager->link($v)}" data-page-no="{$v}">{$v}</a>
    {/if}
  {/foreach}
  {if $pager->getPage() < $pager->end()}
    <a href="/{$pager->link($pager->next())}" data-page-no="{$pager->next()}">下一页</a> 
    <a href="/{$pager->link($pager->end())}" data-page-no="{$pager->end()}">末页</a>
  {/if}
</div>
{/if}